package com.dd.ms.auth.pojo.DO;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dd.ms.auth.entity.RoleEntity;
import com.dd.ms.common.pojo.annotation.Explanation;
import io.swagger.annotations.ApiModel;
import lombok.Builder;
import lombok.Data;

import java.util.List;

/**
 * @Author liuxianmeng
 * @CreateTime 2025/7/8 16:55
 * @Description UserDO 对应数据库表 users
 */
@Data
@Builder
@TableName(value = "users", autoResultMap = true)
@Explanation(value = "用户信息实体")
public class UserDO {
    @TableId(type = IdType.AUTO)
    @TableField()
    @Explanation(value = "用户ID，自增主键")
    private Long userId;
    @Explanation(value = "账户名，用于登录")
    private String account;
    @Explanation(value = "用户密码（加密存储）")
    private String password;
    @Explanation(value = "用户真实姓名")
    private String userRealName;
    @Explanation(value = "联系方式（电话/邮箱）")
    private String contactInfo;
    @Explanation(value = "用户状态")
    private String status;
    @Explanation(value = "用户头像")
    private String userAvatar;

    @Explanation(value = "访问密钥")
    private String accessKey;
    @Explanation(value = "秘密密钥")
    private String secretKey;
}
